//
//  CCAVConfig.h
//  IntellDev_new
//
//  Created by os on 2021/3/12.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/// 音频配置
@interface CCAudioConfig : NSObject

/// 码率 默认值 96000
@property (nonatomic, assign) NSInteger bitrate;
/// 声道 默认值 1
@property (nonatomic, assign) NSInteger channelCount;
/// 采样率 默认值 44100
@property (nonatomic, assign) NSInteger sampleRate;
/// 采样点量化 默认值 16
@property (nonatomic, assign) NSInteger sampleSize;

+ (instancetype)defaultConfig;

@end

@interface CCVideoConfig : NSObject

/// 可选，系统支持的分辨率，采集分辨率的宽 默认值 480
@property (nonatomic, assign) NSInteger width;
/// 可选，系统支持的分辨率，采集分辨率的高 默认值 640
@property (nonatomic, assign) NSInteger height;
/// 自由设置 比特率 默认值 640 * 1000
@property (nonatomic, assign) NSInteger bitrate;
/// 自由设置 帧率 默认值 25
@property (nonatomic, assign) NSInteger fps;

+ (instancetype)defaultConfig;

@end

NS_ASSUME_NONNULL_END
